﻿using System;
using System.Collections.Generic;
using System.Web.Security;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ORS.Web
{
    public partial class Review_Mainpage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (HttpContext.Current.Session["reviewerid"] != null)
            {
                if (!IsPostBack)
                {
                    string uid = Session["reviewerid"].ToString();
                    username.Text = new ORS.BLL.SearchName().getUsername(uid);
                    reviewcount.Text = new ORS.BLL.SearchName().getPreReviewCount();

                }

            }
            else
            {
                FormsAuthentication.RedirectToLoginPage();
            }
                
        }
    }
}